package com.fujin.gulimall.search.feign;

import com.fujin.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @title: productFeign
 * @Author Tan
 * @Date: 2022/2/20 20:54
 * @Version 1.0
 */
@FeignClient("gulimall-product")
public interface ProductFeign {

    @GetMapping("/product/attr/info/{attrId}")
    public R info(@PathVariable("attrId") Long attrId);


    @RequestMapping("/product/brand/info")
    public R infos(@RequestParam("brandIds") List<Long> brandIds);

}
